package cn.ulyer.common.model;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

@Getter
@Setter
public class PageableVo {

    private Integer current;

    private Integer size;

    public Pageable render(){
        if(current>0){
            current--;
        }
        return PageRequest.of(this.current,this.size);
    }


}
